#include "cordic.h"
#include <stdio.h>

int main(int argc, char** argv){
	char angle = 0x65; /*angle = pi/2, signed Q1.6*/
	CordicRecord testdata = {pos_K, 0x00, angle};
	cordic(&testdata, 1, 1);
	printf("RESULT\n");
	printf("x=%01x\n", testdata.x & 0xff);
	printf("y=%01x\n", testdata.y & 0xff);
	printf("z=%01x\n", testdata.z & 0xff);
}
